package cn.lili.modules.store.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 店铺修改DTO
 *
 * @author pikachu
 * @since 2020-08-22 15:10:51
 */
@Data
public class StoreInfoEditDTO {


    @ApiModelProperty(value = "唯一标识", hidden = true)
    private String id;

    @Size(min = 2, max = 200, message = "门店名称长度为2-200位")
    @NotBlank(message = "门店名称不能为空")
    @ApiModelProperty(value = "门店名称")
    private String storeName;

    @NotBlank(message = "门店地址不能为空")
    @ApiModelProperty(value = "门店地址")
    private String address;

    @NotBlank(message = "门店地址不能为空")
    @ApiModelProperty(value = "经度")
    private String longitude;

    @NotBlank(message = "门店地址不能为空")
    @ApiModelProperty(value = "纬度")
    private String latitude;

    @NotBlank(message = "店主不能为空")
    @ApiModelProperty(value = "店主")
    private String shopowner;

    @ApiModelProperty(value = "门店相片")
    private String storePhotos;

}
